/**
 * @Author: lll
 * @Email:li.lele@vpclub.cn
 * @Date: create in 2020/6/29
 */
package cn.vpclub.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName(value = "menu")
public class MenuEntity implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id")
    private String id;
    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    private String menuName;
    /*
     * 菜单url
     * */
    @TableField(value = "menu_url")
    private String menuUrl;
    /**
     * 父级菜单class
     */
    @TableField(value = "menu_icon")
    private String menuIcon;
    /**
     * 菜单类型 0 父级菜单 1 子菜单
     */
    @TableField(value = "level")
    private String level;


    /**
     * 菜单排序
     */
    @TableField(value = "menu_order")
    private Integer menuOrder;

    /**
     * 父级菜单名称
     */
    @TableField(value = "parent_menu_name")
    private String parentMenuName;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "updatedTime", fill = FieldFill.UPDATE)
    private Date updatedTime;
}
